﻿using System.ComponentModel;

namespace Qlab.SharedKernel.Enums
{
    public enum HttpCode
    {
        /// <summary>
        /// OK
        /// </summary>
        [Description("")]
        Status200OK = 200,

        /// <summary>
        /// 新增成功
        /// </summary>
        [Description("新增成功!")]
        Status220Create = 220,

        /// <summary>
        /// 修改成功
        /// </summary>
        [Description("修改成功!")]
        Status221Update = 221,

        /// <summary>
        /// 删除成功
        /// </summary>
        [Description("删除成功!")]
        Status222Delete = 222,

        /// <summary>
        /// 错误请求，请检查请求参数是否正确!
        /// </summary>
        [Description("错误请求，请检查请求参数是否正确!")]
        Status400BadRequest = 400,

        /// <summary>
        /// 未授权，请重新登录!
        /// </summary>
        [Description("未授权，请重新登录!")]
        Status401Unauthorized = 401,

        /// <summary>
        /// 拒绝访问，您没有权限!
        /// </summary>
        [Description("拒绝访问，您没有权限!")]
        Status403Forbidden = 403,

        /// <summary>
        /// 请求资源无法找到!
        /// </summary>
        [Description("请求资源无法找到!")]
        Status404NotFound = 404,

        /// <summary>
        /// 服务器内部错误!
        /// </summary>
        [Description("服务器内部错误!")]
        Status500InternalServerError = 500,
    }
}